package com.example.demo.entity.sqlbean;

import java.util.List;

public class Pager<T> {
    /**分页起始页
     * page
     */
    private int page;
    /**每页记录数
     * size
     */
    private int size;
    /**返回的记录集合
     * data
     */
    private List<T> data;
    /**总记录条数
     * total
     */
    private long total;

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    @Override
    public String toString() {
        return "Pager{" +
                "page=" + page +
                ", size=" + size +
                ", data=" + data +
                ", total=" + total +
                '}';
    }
}

